package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.MechanismsAuthDao;
import com.edt.ichannel.api.service.MechanismsAuthService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 肖瑶
 */
@Service
public class MechanismsAuthServiceImpl implements MechanismsAuthService {

    @Resource
    private MechanismsAuthDao mechanismsAuthDao;

    /**
     *  通过条件查询符合条件的数据条数
     * @param mechanismsId 渠道ID
     * @param user 用户名
     * @param pwd 密码
     * @return 返回值
     */
    @Override
    public int getCountByCondition(String mechanismsId, String user, String pwd) {
        return mechanismsAuthDao.getCountByCondition(mechanismsId,user,pwd);
    }
}
